Added wait before changing the source