Fix Some functions & Add communication function