Made unit function for Comm1. Not sure if it's right...