Adds additional functions including main()