Working code with Parse Synchronization