Changed parameters to the right type.