Call callback function in a less weird way