1st commit. Fork of Casper with minor changes