Streamline variable names and added comments.