Work on C simulation