Made some changes, it's working now.