Implemented pause/resume and better tab management. TODO: console/runtime