Changed Main back to proper operation.