Modify calculator functions to macros.
Specify variables to be volatile.
Hide lf_stack from lf_queue user.