Swapping calls to timer for erlang:send_after