added speed as configurable