Try and optimize memory a bit