Adding alerts and starting functions