Added main and bytecode validation