Structuring servermain to be workhorse for fetching