Removed debugging from update func