Method and apparatus for managing communications