public function userProblemSubmissions($users, $problems, $min = 0, $type = 'id')
    {
        if (!is_array($users)) {
            $users = array($users);
        }
        if (!is_array($problems)) {
            $problems = array($problems);
        }

        if ($type === 'id') {
            $rawSubmissions = $this->load('subs-pids', array($users, $problems, $min));
        } else {
            $rawSubmissions = $this->load('subs-nums', array($users, $problems, $min));
        }

        $users = array();

        foreach ($rawSubmissions as $id => $user) {
            foreach ($user['subs'] as $submission) {
                $users[$id][] = Helper\formatUserSubmission(
                    $submission,
                    $id,
                    $user['name'],
                    $user['uname']
                );
            }
        }

        return $users;
    }