Added random assignment feature and possibility of sending emails from component