Move all the code from c55xde project