Adapted for Elixir 0.13.3