Endogenous

Work in progress :)