Dynamo action in the presence of an imposed magnetic field