[@Kuro] Edited! Let me know if any more work is needed, but I think I fixed the problem.