Implemented IfDo method