Added some more console api functions.
I hate merge commits.