Enh: added function for version