FIX: Throwing exception on incorrect input