The TOPS system is used to plan the berths for container ships, and to decide where best to store incoming containers that may arrive weeks before their scheduled departure date. The main objective of TOPS was to minimise the average distance between the ship's berth and its containers, and to prevent situations where containers needed for loading are stacked underneith other containers. Given Hong Kong's chronic shortage of space, the efficient utilisation of container storage space was an important goal.