Performance improvement: adding only realizable (i.e. type-compatible) callbacks to main method