Trying to get GUI to not freeze (fixed an error)...