Updates to run in closure context; pass swfLoaction as parameter