Added function to add to virtual items and fixed more issues