Implements almost final layout