Removed unnused function and removed all Debug.Logs