Removed unused slack code and added more logging