Simplified the initialization and data computing