Fixed cycle recording. Added location manager.