Simplify multiscreen code