Just as an exercise: Try not using using any anonymous function callbacks.