Added file extension as first parameter