Looking to see if I can convert this into Elixir