Fixed whitespaces. Made speed to a param