Fixed Ready function to actually work