Shortened code: rotateValues, init. Added save function. Added onLoad function.