Added reset method.

Signed-off-by: Antonio Gil Espinosa <antonio.gil.espinosa@gmail.com>