Inlined Spatial and Temporal Checks. Added facility for spatial check optimizations.