waitTillInstancesAreCreated with optional timeout parameter added