Updated: initial implementation for parsing of Main.