Set machines object when creating key