Added dependencies on input.