Added generic overload to parse extension.