Writing now works as intented