Need to fix function invocation in BB rendering - and hook up return statements