Trying to make it work in a subdirectory