i suggest you look at the excellent tutorial i posted in Taint's thread.