Removed getter functions and replaced them with inline lambda functions.