Added masterfile option