Edited 'toasting' function