Added synchronous handler option