Thanks, Riamus2. But that didn't help. I've managed to find a solution to it and it seems to be working now.