Added option to limit the number of posts loaded automatically