Removing unused code. Fixing toast duration.