Added an option to specify extension name