Wrote precomputation of operators