Adding maxWait to createServerWithWait