Fixing copypaste code that doesn't work here.