Fully working version
Added missing declaration for dt
Added a generic constants module