Implemented trim