Updated communication method + fixed syntax error