Added VB mode. Still need to add VB keymappings and simplify the code.