Updated script to bring init function to top