Implemented input limits