Changed execute block to if block