Attempting to define custom decorator but failing o_O