Preliminary go implementation to replace the bash scripts