Added tracking for running queries and the ability to reject queries if more then N are submitted at a time.