Consolidated left/right/center scripts into one