Should we allow the maxMemoryValue to be passed as an optional argument (and set to 512) by default