Added keys and ordered fields functions
new functions