Add the function and remove the unneeded file