Added checks if model allows input