Cleaning up sample init.