Add ability to pass success as a function to proximity loader