Adds rm functionallity