Set up id's properly