added level-switching capabilities, removed prototype stuff.