Added waitstate command