 create_liar = (expectations) ->
-  createAndInject {}, expectations
+  createAndInjectHandlers {}, expectations
 
 # Inject built-in plugins
 create_liar.plugins = require './plugins'

  temp_obj = create_liar expectations
  temp_obj['untitled_function']

createAndInject = (host, expectations) ->
  expectations = [ expectations ] if not Array.isArray expectations
  for expectation in expectations
    preprocessExpectation expectation

    throw new Error 'expectation must have property "function_name"'
  if typeof expectation.function_name isnt 'string'
    throw new Error 'function_name must be a string.'
  injectPlugins expectation

injectPlugins = (expectation) ->
  for key, value of expectation
