Refactor slots method.