Added own resources; removed magic constants.