Added region functions, cleanup, sharpify.