Adds Setup function and command parsing