Current Problem: How to distinguish between a message coming from R or Ap