Hi,
sorry if this seems harsh (it is), but...
If you're not able to figure out where, are you sure you'll be able to figure out how ?
In my opinion the only way to really help you is to force you to study the code and find out where you have to modify it.
Otherwise, you'll not really understand the logic behind the code, what are the assumptions and so on. The end result will be bugs and bad implementation.
Summarizing: study the code, there's even a comment in the section you're looking for, it's hard to miss it.
T.