Changed math log case.
Added queue template.

Added queue template.