Working on class-based message scheduler