Added support for different post sizes.