Add option to set reserved memory size (#8)