Added if variable to conditional.