Added "cut" function