Modified vm heapsize and added some tweaks