Commented the 'else' and 'endif' of some long conditional blocks.