Parsed functionality into private methods.