Prepare entities