Moved raw request to seperate function and fixed wrong types in raw params