Removed incorrect ready function