Add GMT constant reference and some argument error handling.