Would using a queue like this be a source of performance problems?  Also, please nest everything with braces.  Even if it's just a single line under an foreach for if statement.