Updated inline code for pop estimate