Added delete function
Cleaned up (removed) console.log messages