Refine BeagleBone code.