Added set timeout in local storeges to make callbacks async
Function add in local storages