Added constructor for compiled entities