Initial code ported to GitHup