First commit with fully functional mining