Fixed configuration passing to function