Corrected error created by trying to add sync call