Removed joy dependency (not used) and added diagnostic messaging