Always know the ending before you start writing the beginning. If you know the final state in which the characters and story end up, character development will fall into place, as each event will naturally bridge the gap between the present and ending.