More fine-grained compute function