Solving my constant lockups problem