Prepare method added