Changed parameter type to be an interface rather than a concrete implementation.