Some formatting
Toast replaced by log entry
Collisions within the input detection fixed