Added server side validation to protect against cheaters.