Loop function for pulse mode and took out the auto center