Sorry Samuel, my bad, I created a very simple function that probably only works in my situation.