Initial commit of some very rough but functional code