Do some changes to the machine struct