Added messagebox but not quite working yet