Added extensions option for non-cli uses