Using headless gem to make it work on the server