Pulled out interaction with items into separate function