If offset or limit are None, this will still work as intended without the 3 cases.