Added get_extensions method.