Added main and fixed parser call.