Fix bug in rudimentary parameter parsing and add very rough & quick support for parsing extensions.