Occupancy Loop

Added Occupancy code