Make last_part to int again
Lot of style cleanup
Put it out of debug mode