Add constants and document