Added manual mode and removed repeating functions