Also, when posting code, use the [code] tags to keep the formatting, otherwise it's just unreadable.