Implemented complete Element integration

Peds were supposed to be next, but I did this instead.