Adding support for offset value and multiple post types.