Still in the process of converting JavaScript to Python.