Changed to extension from regex