Moved kite functions to utilities.