Added a logging helper and vector logging