Version 4 Updates

Fixed invalid variables