Implements subscribed method