Fix #13 and #17

Pass the attributes of createWith through the prepareForCreation method
which takes care of all the required preparations.