Finished the remove function.