The problem might be the code, because that code looks pretty different than anything ive used.