Feature added to send extra parameters.

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