Made an anonymous function for property rows to consolidate code even
more