Moved graph and console to use templates as well.