Add serialize in and out functions in round template