Added get_extension and format improvements.