Auto centering implemented
Added wrapper to handle callback exceptions