Just some work on the "place_before_current" function.

I don't think it's logically correct yet!