Added wait to startup script to allow pull to work correctly.