Added tilt recording for optimisation. Code still seems buggy and hardware keeps crapping out