Removed all compilation errors. Synthesis is succesful.