Issues connecting Entity API. Working out bugs