Fixed step number bug (hopefully).