Refactored and channel subscription implemented.