Updated both codes. :) Getting uncaught errors on startup