Added conditional elements throgh function calls.