Revamped the function calling system of the main_parser