Build fields method