Added mechanism to use function for retrieving cell values