Partially debugged