Made synchronous by immediately calling callback method.