Fixed file program function order