Minor changes to cheap for consistency, temporarily taking mutex and pthread out to make this compilable.