Added method for converting