Debugged Layout, updated $data array