Added multiple entity support

Its probably a really bad way of doing it!