Removing call-backs that don't add any value. Moving afterOpen to execute in a more useful location.