Swapped vars
log
Proper checks for multiple data items. Fixes #80