Slightly better helper method.