Constants respect masks. More doxygen documentation.