Added a version method to get the current API version.