Trying to fix this app ... I really hate java.