Added new data pull code to the init function