Preperation before adding EF