I hope I really simplifed the code passing IO Layout instead of Layout