Incorrect code printed before! Fixed all issues and it should work better now.