Added mouse curve and head locking.