Refactor everything, fix phantom slots (maybe), but there might be a memory leak