Add mirror function.