Added cob calculation