Layout initialization

Ready to be checked.