Added IP class, fixes #58