Replaced all the .data() calls so the code compiles in VS2008