Have a max number of tries to deserialize