Added file open control.