Make static functions |stock| again (PR #29)

This fixes warnings about unused functions.