Trimming
Removed debug info
Dunno what I did but cookie problem seems fixed now