Refactor into functions. Add check for public keys for GitHub access.