Fixed a few things. Only messagebox is left