Added some more console api functions.