Made size limit configurable and added google analytics code