Removed validate function