Implemented different ways to set resolution.