Replaced tabs with spaces and fixed plugins(), response was not handled correctly.