Add function main to accept multi params