Completed code for value exports