Thanks a bunch Segedi, that looks like exactly what I need.