Created remove function