Merged joao's room method