Unused vars Closes #3937