Fixed to work with n = 1