Added setQuality and moved things around.