Setting dependencies correctly