Cleaned-Up Code Pertaining to Toasts