Added some temp code for testing if serialization is a performance issue