Added STDError redirection
Did work on setup and refining it.