Removed useless extension check.