Added sanity checks and pattern for map background