Updated paramagnet function