Communication lib: Add permissions and fix bug