A compute probably does not need to be created.  A function will do I bet.