Tried to simplify debug & added contentType