Complete rewrite to not use external github repo.