Feature added to send extra param.

Feature adds an extra param to the constructor to send it to the done function.