Changed code to accomodate differnt monitors. But I haven't tested the code yet.