Moved functions around to group them together
Replaced empty brace functions with Unit
Added mouse position logging