Finished --cut implementation