Formatted code, uploading to show bug, debug on