Transform main() function

Currently main arguments are unsupported.