Expanded toast function to take inital delay and duration amount as paramters