Move max_deviation to space