Added extension file and completed optimizer method