Made session syntax nicer.