Optional is not serialisable so do not use it as a field