Add support for sync on() calls