Added support for multiple monitors.