Implemented remove amount function