Forgot to delete variable, caused error because changed to function with find replace.