Dat 2371

I'm not sure but it think there already is some library method to do that.