Add check to make sure config exists to rest of files
Move delete function to worker