Added synchronous mode