Cleaner code, queries motor controller succesfully