Added resizing wait