Prepare Logic part.