Removed complicated and broken code, thanks Victor.