Finished dynamic version of everything. Working version