Changed compile to file to be optional