Managing terminals