Added menu and updated identification algorithm