Modified Linq Script