API: Refactor consoles method.