Added parameter to fix interface rotation when needed.