Working but inefficiently