Added full functionality of sending scheduled messages.