041620142340: Cleaned and debugged code. TODO: Internal debugging.