Added support for forceSync on optimized build