Add some utilities I used in HWs