Tested pencil subroutines on sunnyvale