Made compute() public static