Added main declaration as near-trivial code tidying.