Woods Method fitting code