Change wait time of "waitFor" method from milliseconds to seconds