Function hookup - how to handle basic blocks and whatnot?