Removed unecessary output
Improved fix for val bug