Made accesscontrol working in very first iteration.