I'll fix the query later, but this is working fine