Implemented the function to analysis data.