Removed unused hidden field.
Refactored if statement. Removed comments.