Adding settimeout to init