Modified access of variables to private