Added preliminary code for allocating declarations