Moving callback firing code into its own method.