Added conversion function.