Working with arbirtary inputs