Added callLayoutFunction and removed default receivemessage methods
Altered how sessions are used
Minor